projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0e02da
)
[USE_MAC_IMAGE_IO] (image_load_image_io):
author
YAMAMOTO Mitsuharu
<mituharu@math.s.chiba-u.ac.jp>
Sun, 4 May 2008 00:31:59 +0000
(
00:31
+0000)
committer
YAMAMOTO Mitsuharu
<mituharu@math.s.chiba-u.ac.jp>
Sun, 4 May 2008 00:31:59 +0000
(
00:31
+0000)
Create bitmap context in native byte order.
src/image.c
patch
|
blob
|
history
diff --git
a/src/image.c
b/src/image.c
index eb1cae853f155d409ccf4e134691d830ce403f71..9981b21365a980b3c3d4d9fe9f37fce17ecce5eb 100644
(file)
--- a/
src/image.c
+++ b/
src/image.c
@@
-2681,7
+2681,11
@@
image_load_image_io (f, img, type)
context = CGBitmapContextCreate (ximg->data, ximg->width, ximg->height, 8,
ximg->bytes_per_line,
mac_cg_color_space_rgb,
- kCGImageAlphaNoneSkipFirst);
+ kCGImageAlphaNoneSkipFirst
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
+ | kCGBitmapByteOrder32Host
+#endif
+ );
if (has_alpha_p)
{
Lisp_Object specified_bg;